#pragma once


// CFundSetDlg dialog

class CFundSetDlg : public CDialog
{
	DECLARE_DYNAMIC(CFundSetDlg)

public:
	explicit CFundSetDlg(double exchangeMargin);   // standard constructor
	virtual ~CFundSetDlg();

// Dialog Data
	enum { IDD = IDD_FUND_DIALOG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();

public:
	afx_msg void OnBnClickedBtnOk();
	afx_msg void OnBnClickedBtnCancel();
	afx_msg void OnBnClickedBtnOk2();
	afx_msg void OnBnClickedBtnCancel2();

public:
	double GetMaxAvailable() const {return m_maxAvailable;}

private:
	void BtnSwitch(BOOL enable = FALSE);
	bool LocalCheck(char const* key);

private:
	CString m_fundPwd;
	double m_maxAvailable;
	double m_exchangeAvailable;
};
